package com.zcc.makingfriend.mapper;

import com.zcc.makingfriend.dao.TbArticleCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zcc
 */
@Mapper
public interface TbArticleCategoryMapper {

    int addTbArticleCategory(TbArticleCategory tbArticleCategory);

    int updateTbArticleCategory(TbArticleCategory tbArticleCategory);

    int deleteTbArticleCategoryByArticleId(String articleId);

    String getCategoryUuidByArticleUuid(String articleUuid);

    Long countArticleByCategoryUuid(String uuid);

    List<TbArticleCategory> findTbArticleCategoryByCategoryUuid(String categoryUuid, int page, int size);
}
